package com.yulan.fastkillcourse.service.impl;


import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yulan.fastkillcourse.mapper.CourseMarginMapper;
import com.yulan.fastkillcourse.model.CourseMargin;
import com.yulan.fastkillcourse.service.CourseMarginService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class CourseMarginServiceImpl extends ServiceImpl<CourseMarginMapper, CourseMargin>
        implements CourseMarginService {
    @Autowired
    CourseMarginMapper courseMarginMapper;


    @Override
    public boolean reduceMargin(int cid) {
        return  courseMarginMapper.reduceMargin(cid);
    }
}
